package com.zhentao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.entity.product.Category;

import java.util.List;

/**
* @author 20183
* @description 针对表【category(商品分类)】的数据库操作Mapper
* @createDate 2024-08-19 15:43:18
* @Entity com.zhentao.pojo.Category
*/
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> selectByParentId(Long parentId);

    int countByParentId(Long id);

    //    导出
    public abstract List<Category> selectAll();
    //    导入
    public abstract void batchInsert(List<Category> categoryList);

}




